package com.aoxin.model.opm;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

/**
 * 功能菜单
 * 
 * @author Melody
 * @date 2018年3月21日 上午10:32:07
 */
public class SlfMenu {
	/**
	 * key
	 */
	private Integer key;
	/**
	 * 菜单ID
	 */
	private Integer menuId;
	/**
	 * 菜单名称
	 */
	private String name;
	/**
	 * 父ID
	 */
	private Integer parentId;

	/**
	 * 父名称（查询用）
	 */
	private  String parentName;

	/**
	 * 菜单类型
	 */
	private Integer type;
	/**
	 * 菜单链接
	 */
	private String url;
	/**
	 * 菜单图标
	 */
	private String icon;
	/**
	 * 排序号
	 */
	private Integer sequence;
	/**
	 * 状态
	 */
	private Integer state;
	/**
	 * 描述
	 */
	private String description;
	/**
	 * 创建时间
	 */
	private Date createDate;

	/**
	 * 子节点
	 */
	@JsonInclude(Include.NON_NULL)
	private List<SlfMenu> children;

	public Integer getMenuId() {
		return menuId;
	}

	public void setMenuId(Integer menuId) {
		this.menuId = menuId;
		this.key = menuId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name == null ? null : name.trim();
	}

	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url == null ? null : url.trim();
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon == null ? null : icon.trim();
	}

	public Integer getSequence() {
		return sequence;
	}

	public void setSequence(Integer sequence) {
		this.sequence = sequence;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description == null ? null : description.trim();
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public List<SlfMenu> getChildren() {
		return children;
	}

	public void setChildren(List<SlfMenu> children) {
		this.children = children;
	}

	public Integer getKey() {
		return key;
	}

	public void setKey(Integer key) {
		this.key = key;
	}

	public String getParentName() {
		return parentName;
	}

	public void setParentName(String parentName) {
		this.parentName = parentName;
	}
}